Added a exitkey that should work if the program was to get stuck.
Added i for movement processes.