block spaces from text field

I want to prevent spaces from being entered into a specific web text field.
Is there a text changed like event that I can use to discard the space when it’s pressed and beep?

sorry found it… TextChanged…

This should really be in the Web section, not Customer Service.