Added support for returnKey().  Fixes #498.