I dont know if this is related, but on my system,Keyup object outputs its value immediately after key, when I press akey, not when I release it.