keydown is an event used in writing software that is triggered when a key on the keyboard is being pressed. It usually precedes the event keyup.