Swap keycode and action