Press left or right, ESC or ENTER key.
The event() function provides the key code for keyboard events
event()