Check for space pressed correctly