Event Window.KeyPress (gb.sdl2)

Event KeyPress ( )

This event is raised when a key is pressed.

Use the Key class to get information about the keyboard event.

You can't use the KeyPress event to deals with entered text, because it only manages single keystrokes.

Text input relies on keyboard layouts, key states and input methods, that are managed by the Text event.