Add select events. Fixes #622