Put this:
set string <beforeroom; #quest.currentroom#>
into the BEFOREturn script in the global properties.
Then put this command in:
command <back> {
msg <You step back into #beforeroom#>
go <#beforeroom#>
}
That should work as a simple "go to prvious room" code.