# create services
keyboard = Runtime.start("keyboard", "Keyboard")
python = Runtime.getService("python")

# non blocking event example
keyboard.addKeyListener(python);

def onKey(key):
    print "you pressed ", key

# blocking example
print 'here waiting'
keypress = keyboard.readKey()
print 'finally you pressed', keypress, '!'

@@ -234,17 +234,17 @@
 e%0Aprint 
-'
+%22
 here wai
@@ -247,17 +247,17 @@
  waiting
-'
+%22
 %0Akeypres
@@ -285,17 +285,17 @@
 )%0Aprint 
-'
+%22
 finally 
@@ -305,17 +305,17 @@
  pressed
-'
+%22
 , keypre
@@ -322,8 +322,8 @@
 ss, 
-'!'
+%22!%22
 %0A

Update Keyboard.py