The key binding some players report is A, though this is worth verifying rather than trusting outright.
The reliable route is the keyboard settings menu — weapon slots are listed there and can be rebound to whatever you like. Episode Two doesn't really have a "reassign weapon" action in the inventory sense; what you're changing is which key selects which slot.