Better keypress handling

Fixes for left/right keypress watching not taking into account focus on
textareas/inputs