Arduino code help with fade_functions

How do you write code if the keyboard is out of reach ?