A better way to handle keyboard input
A better way to handle keyboard input.