Expand description

Handling of various keyboard events.

Functions