Keyboard handler, except enter.