API ReferenceworldinputgetKey()On this pagegetKey() world.input.getKey(code) Description Returns true while the user holds down the key identified by name. Parameters PropertyTypeDescriptioncodestringName of key. Returns Boolean. Example world.input.getKey('KeyQ')