protected void Update(double timeDelta)
	{
		m_elapsedTime = (m_currentTime - m_startTime) / 1000.0f;//time, in seconds, since creation of GameForm
		m_currentFPS = Math.floor(1000.0 / timeDelta);//estimated FPS at this instant in time, rounded down
		
		if (IsKeyTriggered(KeyEvent.VK_F11))//toggle fullscreen
		{
			m_isFullScreen = !m_isFullScreen;
			this.setSize(m_isFullScreen ? m_fullScreenSize : m_windowedSize);
			if (m_isFullScreen)
				this.setLocation(0, 0);//so that the full window is visible
			else
				this.setLocationRelativeTo(null);//center screen
		}
		if (IsKeyPressed(KeyEvent.VK_ESCAPE))
			System.exit(0);
	}