Fixed failing test after  accessibility changes in #11827

Previously a tab could be selected by using the enter key. This was
changed in the ticket to use the space key instead due to accessability
reasons.

Fixed test by replacing all enter key presses with space key presses.

Change-Id: I9037785be212bb62835bfb1b17629e115c3fa601