Code to display sensor input of Axis y, If the user presses 'e' then exit the loop. Not working and can not figuer out why

Dependencies:   mbed