Support more special keys in key_press

Patch by Christoph Halbartschlager