changed spacebar behaviour