Listen to keypresses in terminal.