optional support for a modifier key having to be pressed down for selection to work
remove trailing spaces in html