Cleaned up timer input code to avoid code repetition.

Will support more timers being added in the future, with little to change (other than adding buttons to array and adding an action).