React Router push link

how to programmatically change the link, when enter is pressed, and pass a quaery param

using this.context.router.push