fixed some keystroke issues