public void getInput()
    {
    	while (Keyboard.next()) 
    	{
            //if(!chatMode){
                if(getStats().isAlive())
                {
                    if(Keyboard.isKeyDown(Keyboard.KEY_A))
                    {
                        movx = MOVE_LEFT;
                        spr.setAnimation(1);
                    }
                    else if(Keyboard.isKeyDown(Keyboard.KEY_D))
                    {
                        movx = MOVE_RIGHT;
                        spr.setAnimation(0);
                    }
                    else
                    {
                        movx = MOVE_NULL;
                    }

                    if(Keyboard.isKeyDown(Keyboard.KEY_SPACE))
                        justJump = true;
                }
                else
                {
                    Main.spawnGUI(0);
                    movx = MOVE_NULL;
                }
            //}
            //else{

            //}  
        }
        while (Mouse.next()) 
    	{
            if (Mouse.getEventButtonState()) {
                if (Mouse.getEventButton() == 0) {
                    click(Mouse.getX()/16 + Camera.getX()/16, Mouse.getY()/16 + Camera.getY()/16);
                }
            }else {
                if (Mouse.getEventButton() == 0) {
                }
            }
        }
    }