Bug 708517: Assertion on cage tool commit with ENTER + fix cage completion with ENTER.

The key press handler must return TRUE on successfully processing the key,
otherwise the handler ends up being run several times.
(cherry picked from commit 5e331e1d252fc5b855ed333a9d74da436930640f)