Install an event filter on it and filter out the return and enter keys.