fixed up keyboard input in editor