Refactor meta_input_keys_pressed