Added keypress event
Fixed editor startup