added a keyboard input, still needs work