Modified Activity to fix backkey events.

- ToDo: Needs cleaning up for coding format.