Avoid grabbing selection on keypress when it's not being used

This will be a performance improvement.  It will avoid calling into `getSelectionStart` until we know we actually need the selection (if the user hits spacebar, we need to know if their in an anchor or not)