Not sure if this is a bug or just an oversight, but if you have a window open (ie, Civilopedia, tech tree, etc), pressing a hotkey will cause a unit to perform that action. For example, I had a Civilopedia open and hit the space bar, and it ended that unit's turn. I then selected a worker...