It's probably because when you press A, you also hit ENTER, which is a character. Therefore, you're actually entering two characters, and so the second call to getchar picks that up.


Quzah.