Minor code style and optimize KeyEvent.exec a bit
Refactoring
Stop propagation when typing in CmdBox