I've found that when I press shift, it causes me to wrong in that question.
And then I saw the function call fCheckInput() and I think it would be better if check the actual keystroke on a-z instead checks all key in one loop because the loop may cause an error on other keys like 1 2 3 or shift.
Please check and fix it. Thanks.