Added a toArray() function.
Added Mac keyboard shortcuts.