Keyboard helpers (closes #431)