javascript practice for keystroke assignments