Press Key

Press Key

Windows
MacOS
Linux

Press a key as if it had come from the keyboard. Avoid using this for 'a-z|A-Z', things like the Editable Textbox in Slate expect OnKeyChar to be called to signal a specific character being send to the widget. So for those cases you should use SendKeyChar.

Target is Widget Interaction Component

Press Key
Target
Key
Repeat
Return Value

Inputs

In
Exec
Target
Widget Interaction Component Object Reference
Key
Key Structure
Repeat
Boolean

Outputs

Out
Exec
Return Value
Boolean

Press a key as if it had come from the keyboard. Avoid using this for 'a-z|A-Z', things like the Editable Textbox in Slate expect OnKeyChar to be called to signal a specific character being send to the widget. So for those cases you should use SendKeyChar.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss