}
} else if (type.getAsString().equals("key")) {
WSProcessContext current = session.current.get();
if (current != null) {
String _keyType = event.get("keyType").getAsString();
KeyType keyType = KeyType.valueOf(_keyType.toUpperCase());
if (keyType == KeyType.CHARACTER) {
int code = event.get("keyCode").getAsInt();
if (code >= 32) {
current.handle(KeyType.CHARACTER, new int[]{code});
}