Making handbrake

Hi , i have problem because i want to make handbrake with my leonardo and i didin't know command which when circuit is closed its emulates keyboard and press key "n" .

My car has an "electronic" parking brake, but it's operated by a small switch, not a keyboard.

This is a model car I hope ?

srnet:
This is a model car I hope ?

. No, it's a two litre diesel.

My vehicle hand brakes are all "foot operated" parking brakes.

Paul

Delta_G:
I think they cease calling it a handbrake at that point and just call it a parking brake.

But the switch is by the gear stick and is operated by hand, so I guess it is a hand-brake.