Better endpoint handling
Added metaKey also for multiple select for OSX