1. Create payment by clicking "pay" on the invoice
2. Change currency on the payment record to USD
a. It will be defaulted to EUR since a payment will default to the same currency as the invoice
3. Pick the USD bank account you're recording the payment to
4. Save
a. A realized gain will likely be recorded via a Currency Reval record that will probably attach to the payment
b. Or maybe it just shows in the GL impact, I can't remember.
Note that this assumes that USD is the functional/base currency for the subsidiary that this invoice is on. If it's not, then the answer to your question is "you can't."
You can only apply payments in the currency of the invoice or the base currency of the subsidiary.