Simple Keyboard Input Detection Help?!!?

Hello!

I am trying to write a piece of code that will detect if the user presses the up or down arrow keys and depending on which one they press, call a method.

For example in pseudocode:

While keyUPARROW is pressed call method A

while keyDOWNARROW is pressed call method b

Any help is greatly appreciated thanks.
Topic archived. No new replies allowed.