Ruby 2D Examples KeyEvent An example using the on method to capture KeyEvents. It displays the keys you type, like stamps on the screen. Press space to clear, and backspace to quit.