`Hotkey.FromKeyInput(e)` should be extracted to a variable to avoid duplication.