Fixed a bug in the TAB handling in editor KeyDown