I was actually going to comment on the %irunbrowser and how you can change those until I couldn't save my comment because Hawkee lagged, but I figure you can figure that out yourself.
I haven't actually tested the script out, but I think the reason why the 'space bar' isn't working is because you've put a $null value.
You might want to put $chr(32) instead.