Run
Online Code Editor
Welcome to the javaTpoint.com
It is an example of using the keypress() method
Click any key from your keyboard