public boolean isCommandKey(final String key){
  return cmdKeys.contains(key);
}

public boolean isCommandKey ( final String key ) { return cmdKeys . contains ( key ) ; }
check if given key is a command key .
