As was said, you have to be more precise when you ask question.
- Is it IOS / OSX (you speak of arrow keys, so it is probably OSX)?
- Is it SceneKit (likely because you posted here) or a drawing application ?
- have you some code already ? (I understand no)
When questions appear too large, you don't get many answers. That's it.
You should implement the keys handling as follows:
override func keyDown(theEvent: NSEvent)
h ttps://developer.apple.com/library/content/documentation/Cocoa/Conceptual/EventOverview/HandlingKeyEvents/HandlingKeyEvents.html
See:
h ttps://developer.apple.com/library/content/samplecode/Fox/Listings/Swift_Common_GameControls_swift.html
have a look here as well :
h ttps://stackoverflow.com/questions/31881911/use-arrow-key-input-for-scenekit-game-in-swift