Update onKeyEvent.lua