Fix the schedule dialog box not being closed by esc

Gives the schedule dialog box a tabIndex of 0 so that
it can be focused.
Now the dialog box closes when esc is pressed, like normal.

Fixes #196