keycode interaction