Implemented key events.
Implemented finishing a process.