I've trying to use the keyUp event in swift so then I can detect when the user presses a key and when the user releases the key.I have the following code:override func keyUp(event: NSEvent) {
print("foo")
}So shouldn't, when the guy is pressed and released, `foo` be printed to output log?I can do this with the keyDown event:override func keyDown(event: NSEvent) {
print("bar")
}and it works fine, just not for keyUp.Is there something I'm doing wrong?