Keypress to turn red, mouse click to turn green.
Note: This example may not work with all browsers.