Resets text input field on spacebar