throttled, non-memory-leaking key event handling