public void keyReleased( KeyEvent e )
    {
        int key = e.getKeyCode();

        if ( key == KeyEvent.VK_LEFT || key == KeyEvent.VK_A )
            player.setLeft( false );
        if ( key == KeyEvent.VK_RIGHT || key == KeyEvent.VK_D )
            player.setRight( false );
        if ( key == KeyEvent.VK_UP || key == KeyEvent.VK_W )
            player.setUp( false );
        if ( key == KeyEvent.VK_DOWN || key == KeyEvent.VK_S )
            player.setDown( false );

        if ( key == KeyEvent.VK_SPACE )
        {
            player.setShooting( false );
            wasShooting = false;
        }
    }