Register keypress without playing

Can anyone tell me if there is some way to register a keypress in the editor without playing? Would be useful for testing, not having to hit Play each time.

Just a keypress? Are you trying to run a function on keypress or something? If so, you can expose the function to the editor and call it that way. Not sure if there’s a way to just do a single keypress though.

You might be able to do it with editor scripting utilities.Not sure tho…

Ok thanks. Wasn’t aware of exposing function to editor.