osk: Make ESC exit on screen keyboard

Fixes #1732