Fix esc key quitting immediately

Esc input was being processed every frame
whereas input only polled every two frames