Fixes keyboard event capture.
Proper back behavior.
Merge pull request #769 from RotaruDan/catchBackKey

Fixes keyboard event capture.