I currently have all of my key press code in my various SKScene classes. I only want something to happen every time the key is pressed. The key needs to be re-triggered to perform the action again. I'm using a boolean array to keep track of this. This may not be optimal, but it's what I thought of at the time. I was looking to create a class to manage all of this, but key event methods keyUp and keyDown are created in SKScene classes. Is there a global way to handle keys presses so that I don't have to recreate this code in every scene in my game?