How can I enter the exact amounts on both sides of a foreign currency transfer?

Below the Deposit field is a filed called "Foreign Amount". Enter the exact value of the foreign amount in this field.

In order to do this, the category for the transaction must be in a different currency than the currency of the account that the transaction is in.