I want to create a typing game. How would I get the last key pressed?
(It is possible I am thinking of doing it the wrong way, so if you have any questions or comments please speak up)
Develop games in your browser. Powerful, performant & highly capable.
I was thinking Keyboard.StringFromKeyCode(0)
but that doesnt seem to work.
Use the expression keyboard.StringFromKeyCode(Keyboard.LastKeyCode).
EDIT: Just saw that this was a necro-post. Sorry. Anyway that is the expression that you want, krish. Next time please don't post across multiple threads.