implemented deactivating rendering by reacting to SDL_WINDOWEVENT events
fixed key action mappings; key codes are now 32 bit