@Override
        public void keyReleased(KeyEvent e)
        {
            //The code of the released Key
            int key = e.getKeyCode();

            //The direction
            Direction direction = null;

            //We check each keycode and relate a direction to it
            if(key == e.VK_UP)
            {
                direction = Direction.UP;
            }

            if(key == e.VK_DOWN)
            {
                direction = Direction.DOWN;
            }

            if(key == e.VK_LEFT)
            {
                direction = Direction.LEFT;
            }

            if(key == e.VK_RIGHT)
            {
                direction = Direction.RIGHT;
            }

            if(direction != null)
            {
                Controller.Instance().movePlayer(direction);
            }

            repaint();
        }