Ah, I see now, you forgot the event names -- "keyup" and "mousedown"