Added support for keyboard input when running in the editor