[2014.12.26 #13] add all key event processing code