Home › Forums › General Questions › Keyboard control
hi I created a simple onclick event, which worked perfectly, how do i do the same thing by pressing “ESC KEY” or any other keyboard key?
you can use keyup event for this purpose. There is an example setup in the Puzzles library called “Keyboard Controls”.
you can find the table with key values here: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values
3D Verger, the CEO LinkedIn | FB | Twitter | VK | 新浪微博
Test your math: − 9 = 0
Log in / Register