Support a giant hack to store last keyCode

Until KeyEvent is fixed in Dart