added keyboard and mouse triggers