changed tabs to spaces and re-did indent formatting
added Escape Key and Space bar handling

- Escape cancels current operation
- dragging with Space depressed does pan