prevent typing letters when space expected