Fixes #7. Add pan interaction

Also added a utility for detecting key modifier state on browser level events.