Sharp hit a double, his 11th and 12th goals of the season, while Keogh was a danger throughout the game.
Laws said: "We made a slow start, but once we stepped up the tempo, and we like to play at a high tempo, we looked more composed.
"This was a vital win and at half-time I told the players to forget what had happened previously and start all over again.
"Paul Musselwhite made a great save and from then on we played as well as we have done for some time, there was some good patient football.
"Our two up front created a lot of danger and Peter Beagrie, fast approaching his 40th birthday, looked like a youngster."
Oldham boss Ronnie Moore was left to rue 'schoolboy' defensive errors from his side.
He said: "Defensively and collectively we were guilty of schoolboy defending, it was as poor as we've been.
"We started brightly, but the defenders did not appear to be aware of what was happening.
"We are up and down. I thought our front men caused them some problems, but we had a mad 10 minutes. We cannot keep conceding goals and hope for promotion."