Determine if grid is active (will see keypress events)

How can I determine if a grid is active and will thus receive keypress events? I know I can set it active with setActive method.

You may try to use the isActive property:
var active=myGrid.isActive;

thx