add support to "space" typing

last minute edits