Optimize key-event's key-press handler
Optimize String::startsWith, String::endsWith and String::trimFirstStr
Merge pull request #299 from boris-petrov/optimize-key-event

Optimize key event