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

	        if (key == KeyEvent.VK_LEFT)
	        {
	            Magnus.moveDirection = 2;
	        	Magnus.dx = -1;
	            System.out.println("Left key pressed");
	        }

	        if (key == KeyEvent.VK_RIGHT)
	        {
	            Magnus.moveDirection = 1;
	            Magnus.dx = 1;
	            System.out.println("Right key pressed");
	        }

	        if (key == KeyEvent.VK_UP || key == KeyEvent.VK_SPACE)
	        {
	            if (Platform.jumpLimit < 2)
	        	{
	            	Magnus.dy = -5;
	        	}
	            
	            Platform.jumpLimit ++;
	        	
	            System.out.println("Up key or Space bar pressed");
	        }
	    }