Improve key processing readability
Improve key processing readability

The condition "event->type == SDL_KEYDOWN" and the variable
input_manager->controller are used many times. Replace them by local
variables to reduce verbosity.

Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy