Listen to keypresses.