Animation trigger button

How do i set off a animation with a trigger? The animation is called “reload” with no “”. And i want the r button to set it off.

if( Input.GetKeyDown( KeyCode.R ) )
{
yourGameObject.animation.Play( “reload” );
}

thank you Oliver