This posting is older than 6 months and can contain outdated information.
There'll be ways to change key codes in future releases. Sorry for
being a bit nebolous here, but I prefer leaving competitors in the
dark until a new feature is ready :-)
VLC does not provide any AppleScript interface for this
functionality, so this is - unless its added to VLC in future
releases - not an option.
Felix