public void keyPressed(KeyEvent e){
            int key = e.getKeyCode();
            if (key == KeyEvent.VK_SPACE){
                if(player.getAmmo() > 0){
                    weapon.add(new Weapon(player.x, player.y, player.v));
                    player.shot();
                }
            }

            if (key == KeyEvent.VK_SHIFT){
                if((bonusID > 0)&&(bonusCol > 0)){
                    bonus.use(bonusID);
                    bonusCol -= 1;
                }
            }

            player.keyPressed(e);
        }