Timer timer = new Timer();
int frames = 0, prevFrames = 0;
int timePassed = 0;
timer.start();
while( true ) {
kb.poll();
if( kb.keyDown( KeyEvent.VK_Q ) ) {
break;
}
if( kb.keyDown( KeyEvent.VK_A ) ) {
Point2D tempPoint = new Point2D( rand.nextInt( window.getWidth() ), rand.nextInt( window.getHeight() ) );