Попробуй так
import e32, os
from appuifw import *
from key_codes import *
def key_handler():
wel_len = len(wel)
text = text_body.get()
note(text[wel_len:], 'info')
app.body = text_body = Text()
text_body.bind(EKeyDevice3, key_handler)
wel = u'>>> '
text_body.add(wel)
lock = e32.Ao_lock()
app.exit_key_handler = os.abort
lock.wait()