Move presentation of keyboard events to the script