Fixed TAB functionality to switch between modal buttons when alert is active.
Added conditions for handling ENTER / SPACE keys while alert is active.