I want to detect keyboard input in my NSViewController. The idea is to have several actions performed if the user presses certain keys followed by ENTER/RETURN.
I have checked if keyDown would be a appropriate way. But I would receive an event any time the user has pressed a key.
I also have though on using an NSTextField, set it to hidden and let it have the focus. But maybe there are other better solution.
Any ideas?
Thanks
I've finally got a solution that I like. First it has nothing todo with any hidden UI Elements but rather let the viewcontroller detect keyboard input.