added key listener and added code to convert to hiragana