private HashSet<Integer> currentPressedKeys = new HashSet(); // Keys currently pressed
public AvatarControls() {
m_inputClient = new DefaultCharacterControls(ClientContextJME.getWorldManager());
inputGroup = new InputClientGroup();
inputGroup.setScheme(m_inputClient);
// Listen for focus lost events and send fake key release messages
// to avatar for any keys that were pressed when focus was lost
ClientContext.getInputManager().addGlobalEventListener(new EventClassListener() {