A KeyboardEvent event occurs when the user presses a key while the cursor is located inside a TextInput or TextBox.
KeyboardEvent
TextInput
TextBox