handle TAB in keyDown, not keyPress, so we can surpress focus manager using TAB to swap focus from the editor.