[PATCH 5.4 21/78] Input: add safety guards to input_set_keycode()