change enter,press... to grid to avoid some bug