I dont know if this is related, but on my system,

Keyup object outputs  its value immediately after key, when I press a
key, not when I release it.

This is known: https://github.com/pure-data/pure-data/issues/213

It's not directly related but more an issue with the TK Cocoa backend. 

--------
Dan Wilcox
@danomatika
danomatika.com
robotcowboy.com