Keyboard Buttons Not Working Correctly