Depending on your needs, if you provide a bit more information on what you are attempting to do the community may be able to provide more in depth responses.
If you are trying to move a character by pressing space that is in the level, you could do something like this: