Key

Description

A enum with key names and their values.

It's used for the function Get Key Pressed.

Names & Values

For a list of all keys, you can view the input keys spreadsheet in Resources.

Example

Check If F5 Key Is Pressed

if input.getKeyPressed(input.key.KEY_F5) then
 --do something
end

Last updated