simple game loop for running at 60 fps and basic input methods (keyPressed() & keyReleased)