Join the DZone community and get the full member experience.Join For Free
Note that this can be checked under Firefox and/or Safari like browsers which support the console object. This will give you the idea which key is pressed in a number value. The Enter is usually 13!
If you don’t have such browser, you can replace that code with something like:
Published at DZone with permission of Stoimen Popov , DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.