Upon pressing a key to open up either the creative inventory, or the chat box, there is a relatively large chance that upon pressing the key, another key press would be simulated without any real second key press. This only applies to Minecraft, and nothing else. For instance, pressing T at any speed to open the chat, has a change to simulate a second press, showing a t already in the chat box. This is the same thing for the / key as well. I know that this is not a one time thing, as I have restarted my MC, and PC multiple times, and found another issue like this on another forum.
Linked issues
Comments

Thank you for your report!
We're tracking this issue in MC-122477, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
Relates to MC-122477