Windows 3.1 had a macro-recording facility. I'm sure there are shareware programs that allow programming the function keys.
Cross platform is going to be a problem because every OS has a different conception of what a console is.
This looks good for Windows:
[link|http://www.hot-keyboard.com/download/index.htm|http://www.hot-keybo...ownload/index.htm]