up and down keycode working