fixed keyboard events
handling restarts properly in a work-in-progress