@Override
    public Screen respondToUserInput(KeyEvent key) {
            switch (key.getKeyCode()) {
            case KeyEvent.VK_NUMPAD4:
                player.moveBy(-1,0); 
                break;
            case KeyEvent.VK_NUMPAD6:
                player.moveBy(1,0); 
                break;
            case KeyEvent.VK_NUMPAD8:
                player.moveBy(0,-1); 
                break;
            case KeyEvent.VK_NUMPAD2:
                player.moveBy(0,1); 
                break;
            case KeyEvent.VK_NUMPAD7:
                player.moveBy(-1,-1); 
                break;
            case KeyEvent.VK_NUMPAD9:
                player.moveBy(1,-1); 
                break;
            case KeyEvent.VK_NUMPAD1:
                player.moveBy(-1,1); 
                break;
            case KeyEvent.VK_NUMPAD3:
                player.moveBy(1,1); 
                break;
            
            } 
        
        dungeon.update();
        return this;
    }