the game sometimes thinks im holding a key down when im not
Registeing key clicks is built into Unity and this issue isn't common. Maybe try checking your keybinds in options, maybe you have extras or a faulty key.