It sounds like something is triggering the TAB key on your keyboard. Either the key is sticking, or the circuit is damaged and there is a short, which causes the computer to register that the tab key is being pressed.
You can either try a different keyboard, or if it is an internal laptop keyboard, you may need to replace the internal keyboard, which should be fairly easy to do.