Comment on MAME OS X

How do we map keyboard input?