Adjustment to KeyboardFunctions example