Keyboard input/Determine if a key has been pressed at the terminal