How do you Code Arrow Keys for controlling a sprite?

I was wanting to know if you could code arrow keys and/or other keyboard functions into a game. I was wanting to control a sprite with this function but couldn't figure ou how or if it was even possible.

Thanks for any help

A similar community discussion:

Thanks, I will see if that works

So far no word
If anyone knows I'd love to know as well.

I have until tomorrow to figure this out... :frowning:

Do you want to do this on your app, or when connected by companion / emulator and use keys from your computer ?

I can do the latter with Genymotion Emulator as this provides an option to use/not use the on screen keyboard. (Most emulators offer this functionality)

Or, do you want to send keyboard commands from your computer to a compiled app?