it looks like you're attaching code to a timeline, correct?
if yes, you must be attaching to a keyframe in a timeline. the simplest situation would be to create the arrow buttons in that same keyframe and make sure they're named correctly (in the properties panel).