Holding down the left cursor, up cursor and space bar at the same time. My keyboard only recognizes the first two keys pressed. It took me a while to realize this because for a good hour I was debugging expecting to find a bug, first in my code, then in libraries I was using and so on. The confusing thing was that holding down the right cursor, up cursor and space bar worked fine.
It was only later that I tried another keyboard and it didn't work either that I realized it must be a hardware limitation of keyboards or the operating system. I then found this as a kind of confirmation:
This raises questions to me some of which are
- Is it common knowledge in game development that certain key combinations like cursors and spacebar should be avoided?
- I vaguely recall playing a lot of games in the past that had cursor key movement and space bar to shoot (I don't recall any specific example though). Does anyone else remember that too? If so how did those games reliably work?
- How can anyone (but most importantly me) make a keyboard movement controlled game that allows more than two keys to be held down at the same time if there's no guarantee keyboards will support it? To (some) players - with certain keyboards - it will just appear that the game has a crippling bug. In my case what I saw was that when flying forward and firing I couldn't turn the ship left, but turning right was fine.