Fixed double presses, added pause state

replaced windows.h with sdl functions instead