I have a scratch project, and I want to make it so that whenever you press a key, it sets a variable named "Key pressed" to the key that was pressed. This includes keys like Control, tab, delete/backspace, and the esc key. (Basically any key you can press on a standard qwerty keyboard)
Is there a way to achieve this with a script that you paste into the console?
Thanks in advance!
2.1m questions
2.1m answers
60 comments
57.0k users