JavaScript » Event » keyCode

Syntax:
event.keyCode

Contains the last key that was pressed.