Executing code by upon pressing a key (Enter)

Hi,

Can any one help me create a custom script for executing code upon pressing any key.

For example: Save the document simply by pressing enter

Regards
Harshal

Use Ctrl+S to save.

You can use keydown to catch keys:

keydown works like a charm

Thanx