@Override
	public void handleEvent(Event event) {
		if (event.isOfType(KeyPressedEvent.TYPE_ID)) {
			KeyPressedEvent keyPressed = (KeyPressedEvent) event;
			handleKey(keyPressed.getKeyCode(), true);
		} else if (event.isOfType(KeyReleasedEvent.TYPE_ID)) {
			KeyReleasedEvent keyReleased = (KeyReleasedEvent) event;	
			handleKey(keyReleased.getKeyCode(), false);
		}
	}