Rearranged keyboard events.