Unless you’re holding the alt/gr, fn, shift, or control key, Enum.KeyCode.Q will be true when you press F9.
This happens 100% of the time, however only in live servers. This does not happen in studio sessions. Reproduction steps are simple:
- Place a local script under game → StarterPlayer → StarterPlayerScripts or any place where a local script can be ran
- Paste the following code into that local script
game:GetService("UserInputService").InputBegan:Connect(function(io)
if io.KeyCode == Enum.KeyCode.Q then -- true when pressed Q or F9
print(io.KeyCode, "Q")
elseif io.KeyCode == Enum.KeyCode.F9 then -- only true when pressed F9
print(io.KeyCode, "F9")
end
end)
- Publish the place and play it
Alternatively, here is the place file: Repro.rbxl (13.3 KB)
I don’t know when the bug started happening. I only noticed it today.
I’m using a laptop and I know that laptop keyboards behave slightly differently from desktop keyboards, so this bug may only affect laptop users. If this is intended for whatever reason, I think it should be changed if possible as it may hinder players’ experience. For example, if the Q key teleports the player to a different place and the player accidentally presses the F9 key when they meant to press the F8 key which turns the volume up, they will unwillingly be teleported.