Try to put "on_t = roodlicht" to your function main
or call function key_presses() within a loop.