play music on key press

I want to play a sound when I pressed number 1 key on the keyboard, how do I do it?

Something like this?

if(Input.GetKeyDown(KeyCode.Alpha1)) audio.Play();