Available Keys

PMC simplifies the keyboard in order to aid rapid development. There are few rules that this includes:

Named Keys

Keys of a single character, for example 'w', 'a', 's', 'd, 'e', '0', '1', '2', etc, can all be queried using those characters.

if getControls().isKeyDown( :w )

However some keys have a full name, and these are:

c = getControls()

if c.isKeyDown( 'left' )
else if c.isKeyDown( 'right' )