onKeyDown and onKeyUp global key handlers.