How would I make it where when I press the (w) key it detects it and i can add a function to it like moving an object up the screen.
How do I set up key detection
You can override keyDown in your SKScene. (Or other places in the responder chain, such as the SKView or the view controller or window controller, but the scene seems like the easiest place to do it.)
how would I do that can you give me some example
override func keyDown(theEvent: NSEvent!){updateManPosition(theEvent)}func updateManPosition(theEvent:NSEvent){ if theEvent.keyCode == 123 { man.position.x -= 2 } else if theEvent.keyCode == 124 { man.position.x += 2 } else if theEvent.keyCode == 126 { println("jump") }Key Codes : http://macbiblioblog.blogspot.com/2014/12/key-codes-for-function-and-special-keys.html
Would this be correct?