Thanks for your help,
The calculator is currently work in progress.
- the number keys turn yellow on keydown,
- the number keys revert back to the original colour on keyup.
This currently works as intended when numbers are typed in slowly.
However this does not work as intended when numbers are quickly typed in.
- the keydown function on line 1 , changing the colour to yellow works
- but the keyup function on line 2, reverting the colour back, doesn’t
Can anyone advise what topic I can google or lookup to address this problem?