Add keyboard up/down key event handlers.