Fix bug in ActionKey isReleased.  Minor cleanup.