allow to opt-in using keydown instead of keyup

Useful for preventing browser scrolling on up/down arrow and space.