Well use something new for this: Key.isDown, a function that checks to see if a key is pressed. When used in tandem with an if statement and other Key.parameter functions, it can be used to determine motion based on keypresses.
From Adrien-Luc Sanders, former About.com Guide
Well use something new for this: Key.isDown, a function that checks to see if a key is pressed. When used in tandem with an if statement and other Key.parameter functions, it can be used to determine motion based on keypresses.