Just a simple javascript to monitor keystrokes: