Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I'm sure that I'm not alone. Sometimes when I go somewhere or build something, all of a sudden, the character keeps going forward just like the W is stuck. But it's not.

To recover from this I have to bash my ASWD keys on the keyboard (gently :P) and it's ok. What's causing this and how can I fix it?

share|improve this question
1  
Are you on Linux? If so, then X is grabbing focus so the event is lost like badp said. Pressing escape always fixes it for me. –  John the Green Aug 13 '11 at 13:37
    
Please forgive my density, but what other window manager is there? –  John the Green Aug 13 '11 at 15:11
1  
X is not a window manager, and I'm pretty sure that @Warface is using X. I doubt there is any other 3D-accelerated alternative to X, and that is compatible with Java. –  Denilson Sá Aug 13 '11 at 16:39
    
@Denilson Ah window system. My point remains the same though: "What alternative is there to X"? –  John the Green Aug 14 '11 at 16:13
1  
This is known among my friends as the "Linux Cruise Control" bug. It's both convenient and gets me killed, depending on the situation. –  Broam Jan 5 '12 at 14:16

3 Answers 3

up vote 21 down vote accepted

This is a bug. It usually happens when I'm moving and clicking at the same time.

It has been reported on GetSatisfaction, and there is a known workaround: update lwjgl library that is downloaded together with Minecraft.

This bug has been around for a lot of time, and it would be great if Mojang actually fixed it...

share|improve this answer
    
Thanks that's what I think might cause the problem. –  Warface Aug 13 '11 at 22:03
    
Awesome find! I didn't realize Minecraft had control issues on Linux which don't afflict in on other OSes. Here's hoping Mojang updates LWJGL before release, at least. –  Ben Blank Aug 14 '11 at 5:14

This probably means that Minecraft, for whatever reason, lost the "key W was released (thus the user wants to stop moving forwards)" event, and as a result you're still going forwards.

Try pressing W again.

share|improve this answer
    
This type of thing used to happen to me all the time with other games with an old keyboard I had. The keyboard wouldn't register more than four keys at once, so if I held down more than four keys it would forget that the W key was held down. Example: I was holding down the W key to move forward. I then pressed and held down the A key to strafe, the SHIFT key for a modifier, started pressing the E key for an attack and then pressed the space key to jump. This caused the game to continue the W key press until I pressed and released it again. –  Adanion Aug 12 '11 at 18:48
    
Pressing W again does nothing, I have to press space will pressing all ASWD together and it's ok... –  Warface Aug 12 '11 at 20:18
    
Alternatively, try unplugging and replugging your keyboard. –  Raven Dreamer Aug 12 '11 at 23:21

One cause of this is when you press two keys at almost the same time, one of which is a movement key and the other opens a GUI. A well-known "poor-man's autorun" in Minecraft is to press the "walk forward" and "inventory" keys at the same time. You will begin walking — with the inventory screen open — and will continue walking after closing your inventory again, even though no key is held down.

Other input "collisions" may cause this as well, but as badp points out, the only real after-the-fact solution is to press the "stuck" key again. There is no way to prevent this kind of key-sticking, either, other than avoiding the simultaneous inputs which cause it.

share|improve this answer

protected by Mark Trapp Aug 13 '12 at 14:17

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.