Added a guard against incorrect use of keys for event handlers
Added a guard against incorrect use of keys for event handlers

EGreg/Platform,jkokh/Platform,AndreyTepaykin/Platform,AndreyTepaykin/Platform,Qbix/Platform,jkokh/Platform,jkokh/Platform,Qbix/Platform,AndreyTepaykin/Platform,jkokh/Platform,Qbix/Platform,AndreyTepaykin/Platform,casualuser/Qbix,EGreg/Platform,casualuser/Qbix,EGreg/Platform,Qbix/Platform,casualuser/Qbix,EGreg/Platform,casualuser/Qbix